Scroll bars are made up of five distinct image parts
|--------------|
| TOP CAP |
|--------------|
| |
| |
| REPEAT |
| |
| |
|--------------|
| THUMB |
|--------------|
| |
| |
| REPEAT |
| |
| |
|--------------|
| BOTTOM CAP |
|--------------|
The Top Cap and Bottom Cap and Thumb are single images and are simply drawn im place as per any normal image
The repeat needs to be a small tileable graphic that will be repeated accross the remaining area to fill in the
gaps between top bottom and thumb.
1.0.1 Update to suit new CScrollPanel
Definition at line 64 of file CScrollBarImages.hpp.
| Exponent::GUI::Controls::CScrollBarImages::CScrollBarImages | ( | ) |
Construction
| virtual Exponent::GUI::Controls::CScrollBarImages::~CScrollBarImages | ( | ) | [virtual] |
Destruction
| bool Exponent::GUI::Controls::CScrollBarImages::drawScrollBarImages | ( | CGraphics & | graphics, | |
| const CRect & | area, | |||
| const bool | isVertical | |||
| ) |
Draw the scroll bar images
| graphics | The graphics handle | |
| area | The area to draw them in | |
| isVertical | True if scroll bar is vertical, false otherwise |
| bool | True if drawn properly, false otherwise |
| IImage* Exponent::GUI::Controls::CScrollBarImages::getBottomImage | ( | ) | const [inline] |
Get the bottom image
| IImage* | The bottom image |
Definition at line 133 of file CScrollBarImages.hpp.
References m_bottomCap.
| IImage* Exponent::GUI::Controls::CScrollBarImages::getRepeatImage | ( | ) | const [inline] |
Get the repeat image
| IImage* | The repeating part of the scroll bar |
Definition at line 145 of file CScrollBarImages.hpp.
References m_repeat.
| IImage* Exponent::GUI::Controls::CScrollBarImages::getThumbImage | ( | ) | const [inline] |
Get the thumb image
| IImage* | The thumb (central) part |
Definition at line 139 of file CScrollBarImages.hpp.
References m_thumb.
| IImage* Exponent::GUI::Controls::CScrollBarImages::getTopImage | ( | ) | const [inline] |
Get the top image
| IImage* | THe top cap |
Definition at line 127 of file CScrollBarImages.hpp.
References m_topCap.
| bool Exponent::GUI::Controls::CScrollBarImages::isValid | ( | ) |
Check if all the images are loaded
| bool | True if all images are valid |
| void Exponent::GUI::Controls::CScrollBarImages::loadFromResourceFolder | ( | const CSystemString & | resourceFolder | ) |
Load from resource folder
| resourceFolder | The path to the folder to load from, expects to find Targa images named ScrollBarTopCap ScrollBarRepeat ScrollBarThumb ScrollBarEndCap |
| CScrollBarImages& Exponent::GUI::Controls::CScrollBarImages::operator= | ( | const CScrollBarImages & | other | ) |
Copy operator
| void Exponent::GUI::Controls::CScrollBarImages::setImages | ( | IImage * | topCap, | |
| IImage * | bottomCap, | |||
| IImage * | thumb, | |||
| IImage * | repeat | |||
| ) |
Set the images
| topCap | The top cap | |
| bottomCap | The bottom cap | |
| thumb | The central thumb image | |
| repeat | The repeating part of the image |
End cap - bottom / right
Definition at line 167 of file CScrollBarImages.hpp.
Referenced by getBottomImage().
bool Exponent::GUI::Controls::CScrollBarImages::m_isValid [protected] |
All images loaded?
Definition at line 170 of file CScrollBarImages.hpp.
The repeat image
Definition at line 169 of file CScrollBarImages.hpp.
Referenced by getRepeatImage().
IImage* Exponent::GUI::Controls::CScrollBarImages::m_thumb [protected] |
The thumb track image
Definition at line 168 of file CScrollBarImages.hpp.
Referenced by getThumbImage().
End cap - top / left
Definition at line 166 of file CScrollBarImages.hpp.
Referenced by getTopImage().